package edu.seu.mart.service.impl;

import edu.seu.mart.dao.IOrderItemDao;
import edu.seu.mart.model.OrderItem;
import edu.seu.mart.service.IOrderItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2015/3/18.
 */
@Service
public class OrderItemService implements IOrderItemService {

    @Resource
    private IOrderItemDao orderItemDao;

    @Override
    public List<OrderItem> findOrderId(int orderId) {
        return orderItemDao.findOrderId(orderId);
    }

    @Override
    public void deleteOrderId(int orderId) {
        orderItemDao.deleteOrderId(orderId);
    }

    @Override
    public void add(OrderItem item) {
        orderItemDao.add(item);
    }
}
